CC =/opt/buildroot-2012.08/arm920t/usr/bin/arm-linux-gcc
OBJS = set_serial.o gps_analyze.o gps_main.o
SRCS = set_serial.c gps_analyze.c gps_main.c

gps.bin : $(OBJS) 
	$(CC) -o gps.bin $(OBJS)
	@make clean

gps_mian.o : $(SRCS) gps.h
	$(CC) -c $(SRCS)

set_serial.o : set_serial.c 
	$(CC) -c set_serial.c

gps_analyze.o : gps_analyze.c gps.h
	$(CC) -c gps_analyze.c

clear:
	@rm  gps.bin

.PHONY: clean

clean:
	@rm *.o

